package com.lishuang.system.domain;

import com.lishuang.basic.domain.BaseDomain;

import java.util.ArrayList;
import java.util.List;

/**
 * 实体类：角色管理
 */
public class Role extends BaseDomain {


    //角色名
    private String name;
    //角色编号
    private String sn;

    // 角色和权限 多对多关系：当前角色拥有的权限
    private List<Long> permissions = new ArrayList<Long>();
    // 角色和菜单 多对多关系：当前角色拥有的菜单
    private List<Long> menus = new ArrayList<Long>();

    public List<Long> getPermissions() {
        return permissions;
    }

    public void setPermissions(List<Long> permissions) {
        this.permissions = permissions;
    }

    public List<Long> getMenus() {
        return menus;
    }

    public void setMenus(List<Long> menus) {
        this.menus = menus;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    @Override
    public String toString() {
        return "Role{" +
                ", name=" + name +
                ", sn=" + sn +
                "}";
    }
}
